package com.zenchn.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * 监测点-监测项列表映射
 *
 * @author pingbingqi
 * @date 2020-12-07
 **/
@ApiModel(value = "监测点-监测项列表映射", description = "监测点-监测项列表映射")
public class AnchorAndComponentDO implements Serializable {

    private static final long serialVersionUID = 110243901112056131L;

    @ApiModelProperty(value = "监测点ID")
    private String anchorId;

    @ApiModelProperty(value = "监测项ID")
    private String componentId;

    public String getAnchorId() {
        return anchorId;
    }

    public void setAnchorId(String anchorId) {
        this.anchorId = anchorId;
    }

    public String getComponentId() {
        return componentId;
    }

    public void setComponentId(String componentId) {
        this.componentId = componentId;
    }

    @Override
    public String toString() {
        return "AnchorAndComponentDO{" +
                "anchorId='" + anchorId + '\'' +
                ", componentId='" + componentId + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        return Objects.hash(anchorId, componentId);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {return true;}
        if (o == null || getClass() != o.getClass()) {return false;}
        AnchorAndComponentDO a = (AnchorAndComponentDO) o;
        return Objects.equals(anchorId, a.anchorId) &&
                Objects.equals(componentId, a.componentId) ;
    }
}
